# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-pgspecial
_pkgname=pgspecial
pkgver=1.11.10
pkgrel=0
pkgdesc="Meta-commands handler for Postgres Database"
url="https://pypi.python.org/pypi/pgspecial"
arch="noarch"
license="BSD-3-Clause"
depends="py3-click py3-psycopg2 py3-sqlparse"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-pgspecial" # Backwards compatibility
provides="py-pgspecial=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="04ef511a26a92bc21a99d256e8f71ce6b12b8ee66a50dd2e2b92e647a0163a23e49f4451eaed0d11c7fbf6ffb421444f48d1991b66c9c3b8a3aa8a00fafbeb08  pgspecial-1.11.10.tar.gz"
